Added new database tables, added enabled intervals selection method