Fixed some db errors, crud functions nearly complete for orgs and users