firebase model integrated