Success, I got database to work within a scriptlet.