Initial import
Define DB symbols for compability
First working minimal API compatible version, no ABI compability yet