Changed way of adding sentences to database