added Database class and several constant variables