inserting and reading data from database added