Ajustes database functions e actions