+fix redirect to setup
+fix add type of database