controller and model post added alongwith mysql connectivity