Added scoring/database functionality