Changed how database information is read