adding design docs for database