saving points to the db