added $database field

something I had forgotten...