Now dynamically adds any missing DB tables.