DB & log Design