Changed Database to singleton.