removed a bunch of complicated code
refactored database connection
added Favorite bean