Prevent adding forward slash at the end of database url