working DB integration