added Illuminate/Database dependency
replaced arguments with options
added connect_to_database($options)
some refactoring