Opening the db file in read-only mode whenever possible
Framework almost complete