Refactored server initialization to a higher level.
Implemented feature to return a list of databases.