Collect database access in init command