Fix db schema change problem