fix typo: db:connect() is a function