db conf & fixes