Lots more database stuff and setport and port commands
passwords and permissions need testing