logger and new db methods