Fixed OperationalError when creating the database