Renamed module to 'db', for ease of testing