const QMap<QString, QString> Database::getFriends() {
	QMap<QString, QString> qm;
	QSqlQuery query;

	query.prepare(QLatin1String("SELECT `name`, `hash` FROM `friends`"));
	query.exec();
	while (query.next())
		qm.insert(query.value(0).toString(), query.value(1).toString());
	return qm;
}
const QMap<QString, QString> Database::getFriends() {
	QMap<QString, QString> qm;
	QSqlQuery query;

	query.prepare(QLatin1String("SELECT `name`, `hash` FROM `friends`"));
	query.exec();
	while (query.next())
		qm.insert(query.value(0).toString(), query.value(1).toString());
	return qm;
}