db.connect() returns only an error
Another bug fix