add avatars to users
refactor db structures
add essential images/albums management functions