More work was done on the loading from database function. Still working out the kinks.