fixing db stuff in cli files