Changed "defineDatabase" to simply "db"