fixed bug in reading newlines from db