Fixed some bugs. The database query should work, but I get a SQLite error: „no such column“
Changed to new method name