Fixes in put_text_in_db, models