DB functions was correct