database conversion