add some sql stuff