Added database functions, tweaked uploading
Uploading no longer shows the file, instead it flashes a message showing the filename