Used hash for database results instead of array.