cleaned db stuff