re-implementing cookie stuff with creating database entities