Openhab2

OS: Windows 10
Java Runtime Environment: java version "1.8.0_144"
Java™ SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot™ 64-Bit Server VM (build 25.144-b01, mixed mode)
openHAB version: openHAB 2.1.0 - release build -

What is the option to use openHAB together with SQL database?

Is this what you’re looking for?
http://docs.openhab.org/configuration/persistence.html