rewrite sqlite module and add Global Exception handle for debug