New database schema

Changed "type" to "main_type" as it was a reserved word
Changed privacy settings all over the place