storage: use object notation for database access

Using the dict notation is not needed here.