Applied database logic. Volume I: fundamental database issues