[ADD] Added iDatabase interface and refactored Daily and Cycle Tables to conform it