API related changes and database migration