initial query tables