Database Init

Added init that accepts database parameter