modified register, functions, js, and db files