load entities from postgres on app start