added handlers, multithreading, controller, database, templating