Finalised the php db manager for now