Fix protected params... Again.
fix code style, db, add patches to protected params
Cleanup repo