Made database interactions work.