save pathmarks to database