rtcdatabase.sql modified version