created some sql calls