Model Theory of Deductive Databases