Changed the database to the realm