-Added migration script for upgrading database from version 1 to 2. -Fixed database name of stream type in stream entity.