refactored tests to pull job properties from database and added initial
stab at db code