Database properties, auto-creating tables query