create uploads directory
create media table