sophia: add database ctl validation