db read works. Insertion not done