start orders

refactored db to context
first stabs at starting orders