Added DB getter for last entry. Implemented callback function to receive
results from DB queries.