db stuff and libs