tweak db_connect