first database implementation