create api endpoints for matches + automatic timestamps before save of matches