DB now checks if table exists and creates it accordingly