Separate all db ops from modulestore ops