Change DEBUG to NDEBUG. Use release libray for sqlite.