Default queries to localhost.
Cleaner setting of database URL
Updated documentation