add table sql; query with from and until