Added DB code to Andys swing manager stuff.