updatedatabase from command line and create log