created variable dbname and parsed it to string + split