serving db assets dynamically