modify database and functions relate to wage