Using hostname for database address