Write current time to database when storing match