Automatically create table if it doesn't exist