connecttodatabase.cpp fix!!!