add cprofile and db performance monitoring