Added ability to add users, fixed SQL issues.