q, the sql for text based database