modified file db_connect_function add $ to id