moved request processing into RequestProcessor
fixed include
added database connection