tried but failed to add data to postgres db