Fixes bug when trying to delete the current connected database

When you connect you need to specify a database, since we are dropping the database we can't connect to the same database, so we use template1 to connect and run the commands.