Fixed bug in DatabaseService
-changed connection to a static member
-uses semaphore to keep track of open connections, last accessor closes connection
-fixes #11