Added middlewares to views. Added experimental drop db feature