Manager replaceDatabase takes InputStream instead of File

issue number #102