Uncaught exception in module : Call to a member function prepare() on null