Added db stuff