Added documentation and SQL schema