db_connect: couldnot connect to database