a little more db methods, almost done