updated sqlite rotation