Implement new SQL functions GAMEOVER, LEVEL_CODE, and LEVEL_VERSION.