add sql for chess db