placed rtcdatabase.sql outside