Use the below command using awk
version=$(awk -F "=" '/database_version/ {print $2}' parameters.ini)
As per your question, this single liner will grab your ini value within the shell script
This is useful for basic INI files, if it has 2 [parameters.ini] this will return the value twice
And to remove that we can use specialized ini parser like crudini.