save Lines in the database