Fixed directory reference issue that didn't update default avatar URL.
Fixed issue with adding undefined variables.
Fixed main index and sig generation to work with new DB structure.