Reimplementing Database::getContactList, Database::getMessageList and
Database::findDevice with Database::execQueryFromSQLFile.