Redid database schema with elements table. Added intent for picture