change db to postgresql and add strong parameter for subjects and users controller