adding the adding controller, servlet, and database functions.