Added states to run syncdb