first db pass at match implemented.