Added apis.txt design doc; modified database schema