Move database stuff behind interfaces meow