Completed first version of db model
Added more error handling, renamed b64ID to matchID