Added parse DSN function.