add a function to get the translation of a key from the database