Removed 'rate' from "User"; FK fixes; db renamed to "ideasdb"