Added the initial sqlite queries