api: remove db_connect stuff