Implemented loading from Database functionality