fix: passing db to callback after connection.