validate database entries