Split dropping and creation of tables. Added basic authentication support and temporary registration form in index