Test repository for sql