fix to create settings table if doesn't exist