Add lines (and their shape) to the db