adding db functionality to core