log.error and databse schema added