Fixed database get method (this is for you kelsey)