Fix syncdb and migration issue