Add some function to connect city hall to database.