I don't think there is a file/class that makes direct call to database. In fact, the classes make use of available remote API methods, so you can only see the implementation of those.
See the example code for SOAP here - https://developer.atlassian.com/display/JIRADEV/Creating+a+JIRA+SOAP+Client
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG