Put the mydb database in its right place.

QSqlDatabase mydb was once declared in the *.cpp
Now, I've changed it to the header