add auto-creating database and tables