Change db/languages to function to avoid db-query when compiling