Added syncdb and migration support