refactored verification of valid product/shop in incoming msg; moved db models to separate python module file