Added parameter to specify database to write to