Adding database and prefix selection, to be compatible with php-resque.