crud + auth in core php + oop db class