Initial database implementation