Got db working I think.