Added database, actions and some command stuff.