Add stdin reading and fix bug in add new text to BD