updated db stuff