adding data for edit posts
database