fixed db_connect