Improved database query and readme file