Added some more methods to database;
Added group choosing.