fixes typo and removes database call