Boiler plate logging and database setup.