added db stuff