Change homepage to use database events