score and database working