save green lines to database