Updated signature script to use new database functions.