partial fix for issue #4. Adding format type to database and API.  Will add actual formatting tomorrow