added code on formscript that should check on DB for single entries