Update functions.java

updated to new database