fixing the access to database to self.database otherwise this was creating a database called 'database' and syncdb was failing because of auth issues