Added basic DB recording