Switched db writing/reading to be Groovy scripts