db access is going, now to make it more ajaxy