Added config file, templates mysql table and templates recovering query in home.