Added posts controller but saving to the database isnt working