Removed syncdb command.
Fixed lots of build issues.