fixing value for database params not being set