Database manager

@isupeene Working Database manager that is tested. Still needs contracts.

Note: Need to run database_clear.sql and then database_setup.sql on our DB before submitting.
But how are we sending a game to the database/master server for saving/loading and result storing?