Use latest zwave database with zwave-2.4.0

You cannot do that because the database is part of the binding. You CAN run the latest z-wave binding on OpenHAB 2.4
Is that what you wish to do? Your original request is a little garbled.

If so, the easiest way to do that is to run the upgrade script with OpenHAB running.