added image js and change db