added new datas to database.
refactored js and php codes.