used PHP's  reference for db config