adjusts query for la habra earthquakes api to perform only one database query
final commit on view cache decorators for the functions