[api] fix seeds on empty database