backup on database

horrible scripted, but will be updated soon