add memory allocation checks to fastcci_build_db
add more mem checks to fastcci_server