add db_connection and flask route