Cleaned up API code and switched all db queries to use Q promises to be consistent.