Add logging support
Update database field and support to drop db