working on insertion in databse of popup