Fixed saving of size/position.
Replaced all QSQLDatabase::exec() calls.