I am getting no write permission error in my Database

Check whether the user has the permission to write in the database. You have to give the permission while mapping the user with the database.