change console to support sql queryes migrations