Adjusted the get-sqldatabase to make database optional and instance mandatory