changed db.js to reflect no use of expire or ttl