Check value against db