moving database mock into tests folder
updating database mock for core templates