separated web framework from db interface