added db scheme for general costs
added general costs set general costs functionality
added new general costs api calls
added new running costs post
added temporary table script
forced correct type
fixed minor jslint issue