Fixing bug with missing db
Added missing parenthesis