connect_db: fix variable name