Integrating Beta Ui with database.