Version with table and database creation automatically