Fixed auto creating database tables