Added Some Events, Aswell as database functions