Fix issue with passing options to db restore function