Class for SQL-queries