Set database and date for Context