Added a new rating schema of classify

Added a way to reset the database.
It uses the variable Globals.imageTest to fill up the database with test
data
This just drops the tables and recreates them.
Fixed database initialisation related bugs.