Hooking up to Database.