Fixed syntax errors
refactor
Working Posts model
working posts controller