Updated names of database functions. Added game-event constants