Started making database functions more consistent, adding more
More additions/improvements, added CONNECT_TO_DB() macro
Database namespace overhauled, ready to compile-test and propagate
Compiles, untested
Tested new functions
Merge branch 'database'
database: check for game_index==0