changes to enums and beans
adding a file that handles all the calls to database.
adding a file that handles all the calls to database.