Changed SQL-Command to 'SELECT COUNT(id) AS amount FROM ?'