more syncdb issue fixes