Changed Database to be a singleton.