Fixed a bug (db was not called as method)