Database setup
Added view counter