added docs for database design