update databases and some stuffs