Added hostname support. Added ability to change database in config.
Merge pull request #11 from pashamesh/master

Added hostname support. Added ability to change database in config.