Finished database interaction methods, just needs more testing