Switched to mysql for database functions.