Enabled passing database as a parameter