changing constant database value to variable