PHP persistence engine