Added functionality to allow GUI to read off data database