fixed get_db_conn getting new connection every time when not using polling