Now to do sql things