Image Gallery

Cannot execute a query to SQLite database.
Cannot get categories.