Full database implementation