log sql query on operational error as well
FIX:(#394): create weekly table properly, use dbcheck