HOOKED UP TO THE DATABASE