added groupAt(int) function in database_interface