The DATABASE and SCHEMA functions are used interchangeably. They return the name of currently-connected database as a VARCHAR type.
DATABASE()
SCHEMA()
SELECT DATABASE(), SCHEMA();
database() schema()
============================================
'demodb' 'demodb'