Adds database code to the sloganerator