Store files in database, added votes table