Added SQL-Statements for mysql and postgresql