updated functionality to database manager and changed ranking stuff made quicker